import Vue from "vue";
import App from "./App"
import ElementUI from 'element-ui';
import mavonEditor from 'mavon-editor'
import router from "@/router"
import '@/assets/theme/el-doc/theme/index.css';
import 'mavon-editor/dist/css/index.css'
import './index.css'
Vue.use(mavonEditor)
Vue.use(ElementUI)
new Vue({
    el: "#app",
    router,
    render: h => h(App),
    mounted(){
        window.changeTheme = () => {
            const html = document.querySelector('html')
            const isDark = html.className === 'dark bg-gray-800'
            if (isDark) {
                html.className = ""
            } else {
                html.className = 'dark bg-gray-800'
            }
        }
    }
});